package com.zmzncs.lmtc.module.system.pojo.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author 任建波
 * @since 2019-09-10
 */
@Data
public class UserLoginVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "token")
    private String token;

    @ApiModelProperty(value = "人员id")
    private Long userId;

    @ApiModelProperty(value = "员工名称")
    private String username;

    @ApiModelProperty(value = "账号")
    private String account;

    @ApiModelProperty(value = "角色id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long roleId;

    @ApiModelProperty(value = "权限id集合")
    private List<Long> permissionIdList;

    @ApiModelProperty(value = "权限code集合")
    private List<String> permissionCodeList;

    @ApiModelProperty(value = "头像")
    private String avatar;

}
